package com.pearl.generator.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author TangDan
 * @since 2022-08-05
 */
@Data
@TableName("pearl_generator_global_config")
@ApiModel(value = "GeneratorGlobalConfig对象", description = "生成策略全局配置表")
public class GeneratorGlobalConfig extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("禁止打开输出目录,默认值:true")
    private Integer disableOpenDir;

    @ApiModelProperty("指定输出目录，/opt/baomidou/ 默认值: windows:D:// linux or mac : /tmp")
    private String outputDir;

    @ApiModelProperty("覆盖已生成文件，默认值:false")
    private Integer fileOverride;

    @ApiModelProperty("禁止打开输出目录，默认值:true")
    private Integer open;

    @ApiModelProperty("时间策略，DateType.ONLY_DATE 默认值: DateType.TIME_PACK")
    private String dateType;

    @ApiModelProperty("开启 swagger 模式，默认值:false")
    private Integer swagger;

    @ApiModelProperty("开启 lombok 模式，默认值:false")
    private Integer lombok;

    @ApiModelProperty("开启 kotlin 模式，默认值:false")
    private Integer kotlin;

    @ApiModelProperty("注释日期，默认值: yyyy-MM-dd")
    private String commentDate;

    @ApiModelProperty("作者名，baomidou 默认值:作者")
    private String author;
}
